#!/bin/bash
set ARQUIVO_ASM [lindex $argv 0]
#set ARQUIVO_ASM "teste.s"

spawn spim

expect -ex {(spim)} {send "load \"$ARQUIVO_ASM\"\r"}
expect -ex {(spim)} {send "dump\r"}
expect -ex {(spim)} {send "quit\r"}
